﻿<UserControl x:Class="MouseExtender.Controls.UserControls.SystemButtonsBarUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:uc="clr-namespace:MouseExtender.Controls.UserControls"
             xmlns:conv="clr-namespace:MouseExtender.Logic.Converters"
             xmlns:resx="clr-namespace:MouseExtender.Resources"
             Margin="5,2,5,1" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.BitmapEffect>
            <OuterGlowBitmapEffect GlowColor="Black" GlowSize="2"/>
        </Grid.BitmapEffect>
        <Button x:Name="btnControlPanel" Grid.Column="0" Height="21" Focusable="False" MouseDoubleClick="btnControlPanel_MouseDoubleClick" ToolTipService.InitialShowDelay="300">
            <Button.Template>
                <ControlTemplate>
                    <ContentPresenter 
                        RecognizesAccessKey="True" 
                        Content="{TemplateBinding ContentControl.Content}" 
                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" 
                        Margin="0" 
                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" 
                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" 
                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
                </ControlTemplate>
            </Button.Template>
            <Button.ToolTip>
                <ToolTip Placement="Bottom" Content="{x:Static resx:UIResources.SystemButtons_ControlPanelTooltip}">
                </ToolTip>
            </Button.ToolTip>
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.MouseEnter">
                    <BeginStoryboard>
                        <Storyboard Timeline.DesiredFrameRate="{StaticResource ResourceKey=animationFrameRate}">
                            <ColorAnimation Storyboard.TargetName="firstStop1" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF6497A6"/>
                            <ColorAnimation Storyboard.TargetName="secondStop1" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF185A6E"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop1" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF022E3C"/>
                            <ColorAnimation Storyboard.TargetName="firstStop2" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF6497A6"/>
                            <ColorAnimation Storyboard.TargetName="secondStop2" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF185A6E"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop2" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF022E3C"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
                <EventTrigger RoutedEvent="Button.MouseLeave">
                    <BeginStoryboard>
                        <Storyboard Timeline.DesiredFrameRate="{StaticResource ResourceKey=animationFrameRate}">
                            <ColorAnimation Storyboard.TargetName="firstStop1" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF555555"/>
                            <ColorAnimation Storyboard.TargetName="secondStop1" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF333333"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop1" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF000000"/>
                            <ColorAnimation Storyboard.TargetName="firstStop2" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF555555"/>
                            <ColorAnimation Storyboard.TargetName="secondStop2" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF333333"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop2" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF000000"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Image Grid.Column="0" Width="5" HorizontalAlignment="Left" Stretch="Fill">
                    <Image.Source>
                        <DrawingImage>
                            <DrawingImage.Drawing>
                                <GeometryDrawing>
                                    <GeometryDrawing.Brush>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                            <GradientStop x:Name="firstStop1" Color="#FF555555" Offset="0"/>
                                            <GradientStop x:Name="secondStop1" Color="#FF333333" Offset="0.7"/>
                                            <GradientStop x:Name="thirdStop1" Color="#FF000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </GeometryDrawing.Brush>
                                    <GeometryDrawing.Geometry>
                                        <PathGeometry Figures="M 5,0 V 20 A 5,5 0 0,1 0,16 V 5 A 5,5 0 0,1 5,0 Z"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingImage.Drawing>
                        </DrawingImage>
                    </Image.Source>
                </Image>
                <Image Grid.Column="1" HorizontalAlignment="Stretch" Stretch="Fill">
                    <Image.Source>
                        <DrawingImage>
                            <DrawingImage.Drawing>
                                <GeometryDrawing>
                                    <GeometryDrawing.Brush>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                            <GradientStop x:Name="firstStop2" Color="#FF555555" Offset="0"/>
                                            <GradientStop x:Name="secondStop2" Color="#FF333333" Offset="0.7"/>
                                            <GradientStop x:Name="thirdStop2" Color="#FF000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </GeometryDrawing.Brush>
                                    <GeometryDrawing.Geometry>
                                        <PathGeometry Figures="M 0,0 V 20 H 100 V 0 Z"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingImage.Drawing>
                        </DrawingImage>
                    </Image.Source>
                </Image>
                <Image Grid.Column="1" Source="/MouseExtender;component/Images/ControlPanel.png" Margin="0,2,0,3"/>
            </Grid>
        </Button>
        <Button x:Name="btnReboot" Grid.Column="1" Height="21" Focusable="False" MouseDoubleClick="btnReboot_MouseDoubleClick" ToolTipService.InitialShowDelay="300" SnapsToDevicePixels="True">
            <Button.Template>
                <ControlTemplate>
                    <ContentPresenter 
                        RecognizesAccessKey="True" 
                        Content="{TemplateBinding ContentControl.Content}" 
                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" 
                        Margin="0" 
                        HorizontalAlignment="Stretch" 
                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
                </ControlTemplate>
            </Button.Template>
            <Button.ToolTip>
                <ToolTip Placement="Bottom" Content="{x:Static resx:UIResources.SystemButtons_RestartTooltip}">
                </ToolTip>
            </Button.ToolTip>
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.MouseEnter">
                    <BeginStoryboard>
                        <Storyboard Timeline.DesiredFrameRate="{StaticResource ResourceKey=animationFrameRate}">
                            <ColorAnimation Storyboard.TargetName="firstStop3" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF86A767"/>
                            <ColorAnimation Storyboard.TargetName="secondStop3" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF46761B"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop3" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF1A3700"/>
                            <ColorAnimation Storyboard.TargetName="rebootBorder" Storyboard.TargetProperty="BorderBrush.Color" Duration="0:0:0" To="#AA000000"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
                <EventTrigger RoutedEvent="Button.MouseLeave">
                    <BeginStoryboard>
                        <Storyboard Timeline.DesiredFrameRate="{StaticResource ResourceKey=animationFrameRate}">
                            <ColorAnimation Storyboard.TargetName="firstStop3" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF555555"/>
                            <ColorAnimation Storyboard.TargetName="secondStop3" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF333333"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop3" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF000000"/>
                            <ColorAnimation Storyboard.TargetName="rebootBorder" Storyboard.TargetProperty="BorderBrush.Color" Duration="0:0:0" To="#66000000"/>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
            <Grid HorizontalAlignment="Stretch">
                <Grid.Background>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop x:Name="firstStop3" Color="#FF555555" Offset="0"/>
                        <GradientStop x:Name="secondStop3" Color="#FF333333" Offset="0.7"/>
                        <GradientStop x:Name="thirdStop3" Color="#FF000000" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <Border x:Name="rebootBorder" BorderBrush="#66000000" BorderThickness="1,0,1,0" SnapsToDevicePixels="True" HorizontalAlignment="Stretch"/>
                <Image Source="/MouseExtender;component/Images/Reboot.png" Margin="0,2,0,3"/>
            </Grid>
        </Button>
        <Button x:Name="btnShutdown" Grid.Column="2" Height="21" Focusable="False" MouseDoubleClick="btnShutdown_MouseDoubleClick" ToolTipService.InitialShowDelay="300" PreviewMouseRightButtonUp="btnShutdown_PreviewMouseRightButtonUp">
            <Button.ContextMenu>
                <ContextMenu x:Name="cmShutdown" Placement="Bottom" Closed="cmShutdown_Closed" Loaded="cmShutdown_Loaded">
                    <ContextMenu.Template>
                        <ControlTemplate>
                            <Grid>
                                <Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="#FF888888" BorderBrush="#FF333333" BorderThickness="2" CornerRadius="0,8,8,8"/>
                                <ItemsPresenter/>
                            </Grid>
                        </ControlTemplate>
                    </ContextMenu.Template>
                    <MenuItem x:Name="shutdownMenuItem" OverridesDefaultStyle="True" Style="{x:Null}">
                        <MenuItem.Resources>
                            <conv:DoubleToTimeSpanTextConverter x:Key="ValueConv"/>
                            <Storyboard x:Key="sbActionInProgress" Duration="0:0:0.5" RepeatBehavior="Forever" AutoReverse="True">
                                <ColorAnimation Storyboard.TargetProperty="Foreground.Color" To="Gray"/>
                            </Storyboard>
                        </MenuItem.Resources>
                        <MenuItem.Template>
                            <ControlTemplate>
                                <Grid>
                                    <Grid Name="grdTakeAnActionRoot" Margin="5" Width="200">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition/>
                                            <RowDefinition/>
                                            <RowDefinition/>
                                            <RowDefinition/>
                                        </Grid.RowDefinitions>
                                        <HeaderedContentControl Grid.Row="0" Grid.ColumnSpan="2" Header="{x:Static resx:UIResources.Timer_SelectAction}" Margin="5">
                                            <ComboBox x:Name="cbShutdownAction">
                                                <ComboBoxItem Content="{x:Static resx:UIResources.Timer_TurnOff}" IsSelected="True"/>
                                                <ComboBoxItem Content="{x:Static resx:UIResources.Timer_Sleep}"/>
                                                <ComboBoxItem Content="{x:Static resx:UIResources.Timer_Hibernate}"/>
                                            </ComboBox>
                                        </HeaderedContentControl>
                                        <CheckBox x:Name="cbForceShutdown" Grid.Row="1" Grid.ColumnSpan="2" Content="{x:Static resx:UIResources.Timer_Force}" VerticalAlignment="Center" Margin="5"/>
                                        <TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static resx:UIResources.Timer_TimelineTitle}" VerticalAlignment="Bottom" Margin="2,0,-10,0"/>
                                        <TextBlock x:Name="lblInterval" Grid.Row="2" Grid.Column="1" FontWeight="Bold" FontSize="12" Margin="5,0,5,0" TextAlignment="Center" Text="{Binding ElementName=slInterval, Path=Value, Converter={StaticResource ValueConv}}" HorizontalAlignment="Center"/>
                                        <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="0,0,40,0">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"/>
                                                <ColumnDefinition Width="0.2*"/>
                                            </Grid.ColumnDefinitions>
                                            <Slider x:Name="slInterval" Minimum="0" Maximum="60" Value="20" TickPlacement="BottomRight" TickFrequency="5" VerticalAlignment="Center"/>
                                            <StackPanel Grid.Column="1" Orientation="Vertical">
                                                <Button Content="+" Height="14" Width="13" FontSize="6" FontWeight="Bold"  Click="ScaleSliderUp_Click" ToolTip="{x:Static resx:UIResources.Timer_ScaleUp}"/>
                                                <Button Content="-" Height="14" Width="13" FontSize="6" FontWeight="Bold" Click="ScaleSliderDown_Click" ToolTip="{x:Static resx:UIResources.Timer_ScaleDown}"/>
                                            </StackPanel>
                                        </Grid>
                                    </Grid>
                                    <Button x:Name="btnHibernateEdit" Width="38" Margin="8" Content="{x:Static resx:UIResources.Buttons_Start}" Click="btnHiberEdit_Click" HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
                                </Grid>
                            </ControlTemplate>
                        </MenuItem.Template>
                    </MenuItem>
                </ContextMenu>
            </Button.ContextMenu>
            <Button.Template>
                <ControlTemplate>
                    <ContentPresenter 
                        RecognizesAccessKey="True" 
                        Content="{TemplateBinding ContentControl.Content}" 
                        ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" 
                        Margin="0" 
                        HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" 
                        VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" 
                        SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
                </ControlTemplate>
            </Button.Template>
            <Button.ToolTip>
                <ToolTip Placement="Bottom" Content="{x:Static resx:UIResources.SystemButtons_TurnOffTooltip}">
                </ToolTip>
            </Button.ToolTip>
            <Button.Triggers>
                <EventTrigger RoutedEvent="Button.MouseEnter">
                    <BeginStoryboard>
                        <Storyboard Timeline.DesiredFrameRate="{StaticResource ResourceKey=animationFrameRate}">
                            <ColorAnimation Storyboard.TargetName="firstStop4" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FFAD6D5C"/>
                            <ColorAnimation Storyboard.TargetName="secondStop4" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF802711"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop4" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF3E0D00"/>
                            <ColorAnimation Storyboard.TargetName="firstStop5" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FFAD6D5C"/>
                            <ColorAnimation Storyboard.TargetName="secondStop5" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF802711"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop5" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF3E0D00"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="btnShowMenu" Storyboard.TargetProperty="Visibility">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Visible</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
                <EventTrigger RoutedEvent="Button.MouseLeave">
                    <BeginStoryboard>
                        <Storyboard Timeline.DesiredFrameRate="{StaticResource ResourceKey=animationFrameRate}">
                            <ColorAnimation Storyboard.TargetName="firstStop4" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF555555"/>
                            <ColorAnimation Storyboard.TargetName="secondStop4" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF333333"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop4" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF000000"/>
                            <ColorAnimation Storyboard.TargetName="firstStop5" Storyboard.TargetProperty="Color" Duration="0:0:0.3" To="#FF555555"/>
                            <ColorAnimation Storyboard.TargetName="secondStop5" Storyboard.TargetProperty="Color" Duration="0:0:0.2" To="#FF333333"/>
                            <ColorAnimation Storyboard.TargetName="thirdStop5" Storyboard.TargetProperty="Color" Duration="0:0:0.1" To="#FF000000"/>
                            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="btnShowMenu" Storyboard.TargetProperty="Visibility">
                                <ObjectAnimationUsingKeyFrames.KeyFrames>
                                    <DiscreteObjectKeyFrame KeyTime="0:0:0">
                                        <DiscreteObjectKeyFrame.Value>
                                            <Visibility>Hidden</Visibility>
                                        </DiscreteObjectKeyFrame.Value>
                                    </DiscreteObjectKeyFrame>
                                </ObjectAnimationUsingKeyFrames.KeyFrames>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </BeginStoryboard>
                </EventTrigger>
            </Button.Triggers>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <Image Grid.Column="0" HorizontalAlignment="Stretch" Stretch="Fill">
                    <Image.Source>
                        <DrawingImage>
                            <DrawingImage.Drawing>
                                <GeometryDrawing>
                                    <GeometryDrawing.Brush>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                            <GradientStop x:Name="firstStop4" Color="#FF555555" Offset="0"/>
                                            <GradientStop x:Name="secondStop4" Color="#FF333333" Offset="0.7"/>
                                            <GradientStop x:Name="thirdStop4" Color="#FF000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </GeometryDrawing.Brush>
                                    <GeometryDrawing.Geometry>
                                        <PathGeometry Figures="M 0,0 V 20 H 100 V 0 Z"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingImage.Drawing>
                        </DrawingImage>
                    </Image.Source>
                </Image>
                <Image Grid.Column="0" Source="/MouseExtender;component/Images/Shutdown.png" Margin="0,2,0,3" HorizontalAlignment="Center"/>
                <Image Grid.Column="1" Width="5" HorizontalAlignment="Right" Stretch="Fill">
                    <Image.Source>
                        <DrawingImage>
                            <DrawingImage.Drawing>
                                <GeometryDrawing>
                                    <GeometryDrawing.Brush>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                            <GradientStop x:Name="firstStop5" Color="#FF555555" Offset="0"/>
                                            <GradientStop x:Name="secondStop5" Color="#FF333333" Offset="0.7"/>
                                            <GradientStop x:Name="thirdStop5" Color="#FF000000" Offset="1"/>
                                        </LinearGradientBrush>
                                    </GeometryDrawing.Brush>
                                    <GeometryDrawing.Geometry>
                                        <PathGeometry Figures="M 0,0 H 1 A 5,5 0 0,1 4,4 V 16 A 5,5 0 0,1 0,20 Z"/>
                                    </GeometryDrawing.Geometry>
                                </GeometryDrawing>
                            </DrawingImage.Drawing>
                        </DrawingImage>
                    </Image.Source>
                </Image>
                <Button x:Name="btnShowMenu" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Right" Focusable="False" Visibility="Hidden" ClickMode="Press" Click="btnShowMenu_Click">
                    <Button.Triggers>
                        <EventTrigger RoutedEvent="Button.MouseEnter">
                            <BeginStoryboard>
                                <Storyboard>
                                    <ColorAnimation Storyboard.TargetName="firstPressedStop" Storyboard.TargetProperty="Color" To="#FF78240F" Duration="0:0:0.2"/>
                                    <ColorAnimation Storyboard.TargetName="secondPressedStop" Storyboard.TargetProperty="Color" To="#FF9C5340" Duration="0:0:0.2"/>
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                        <EventTrigger RoutedEvent="Button.MouseLeave">
                            <BeginStoryboard>
                                <Storyboard>
                                    <ColorAnimation Storyboard.TargetName="firstPressedStop" Storyboard.TargetProperty="Color" To="#0078240F" Duration="0:0:0.2"/>
                                    <ColorAnimation Storyboard.TargetName="secondPressedStop" Storyboard.TargetProperty="Color" To="#009C5340" Duration="0:0:0.2"/>
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </Button.Triggers>
                    <Button.Template>
                        <ControlTemplate>
                            <ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" HorizontalAlignment="{TemplateBinding Control.HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding Control.VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding UIElement.SnapsToDevicePixels}"/>
                        </ControlTemplate>
                    </Button.Template>
                    <Border x:Name="brdShowMenu" Height="21" Width="21" Background="Transparent" BorderBrush="#66000000" SnapsToDevicePixels="True">
                        <Border.BorderThickness>
                            <Thickness Left="1" Top="0" Right="0" Bottom="0"/>
                        </Border.BorderThickness>
                        <Grid>
                            <Ellipse x:Name="pressedBackground" Height="14" Width="14" VerticalAlignment="Center" HorizontalAlignment="Center" Visibility="Visible">
                                <Ellipse.Fill>
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        <GradientStop x:Name="firstPressedStop" Color="#0078240F" Offset="0.5"/>
                                        <GradientStop x:Name="secondPressedStop" Color="#009C5340" Offset="1"/>
                                    </LinearGradientBrush>
                                </Ellipse.Fill>
                                <Ellipse.BitmapEffect>
                                    <BlurBitmapEffect Radius="6" KernelType="Gaussian"/>
                                </Ellipse.BitmapEffect>
                            </Ellipse>
                            <Path Height="7" Width="8" Margin="0,1,0,0" Fill="#99000000" Data="M0,0 H8 L4,7 Z" VerticalAlignment="Center" HorizontalAlignment="Center" SnapsToDevicePixels="True"/>
                        </Grid>
                    </Border>
                </Button>
            </Grid>
        </Button>
    </Grid>
</UserControl>
